package com.github.tangyi.user.service.sys;

import com.github.tangyi.api.user.model.SysStudentStudyLog;
import com.github.tangyi.api.user.service.ISysStudentStudyLogService;
import com.github.tangyi.common.service.CrudService;

import com.github.tangyi.user.mapper.sys.SysStudentStudyLogMapper;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@AllArgsConstructor
public class SysStudentStudyLogService extends CrudService<SysStudentStudyLogMapper, SysStudentStudyLog> implements ISysStudentStudyLogService {

	@Override
	public SysStudentStudyLog get(Long id) {
		return super.get(id);
	}

	@Override
	@Transactional
	public int insert(SysStudentStudyLog sysStudentStudyLog) {
        sysStudentStudyLog.setCommonValue();
		return super.insert(sysStudentStudyLog);
	}

	@Override
	@Transactional
	public int update(SysStudentStudyLog sysStudentStudyLog) {
        sysStudentStudyLog.setCommonValue();
		return super.update(sysStudentStudyLog);
	}

	@Override
	@Transactional
	public int delete(SysStudentStudyLog sysStudentStudyLog) {
		return super.delete(sysStudentStudyLog);
	}

	@Override
	@Transactional
	public int deleteAll(Long[] ids) {
		return super.deleteAll(ids);
	}
}
